/*
	|=====|	|	|
	|	|	|	|
	|=====|	|=====|
	|	|	|	|
	|=====|	|	|
	
	BASEHACK
	Code by "Brwarner" STEAM_0_1_12243023
	
	Clientside initiation
*/

//Includes
include('shared.lua');
include('config.lua');
include('vgui/DTeamSelect.lua');
include('cl_hud.lua');

//Called by server when player requests the team change window
function ShowTeamMenu()
	local teamMenu = vgui.Create("DTeamSelect");
	teamMenu:SetVisible(true);
	teamMenu:MakePopup();		
end
concommand.Add("showteam", ShowTeamMenu);

function ShowNotice(args)
	local text = args:ReadString();
	LocalPlayer():ChatPrint("ERROR: " .. text);
	surface.PlaySound("buttons/button10.wav");
end
usermessage.Hook("ShowNotice", ShowNotice);
